package besta.moon.sql.datatype;


public final class MutableDouble extends Number implements Mutable {

    public double value;

    public MutableDouble(double value) {
        this.value = value;
    }

    @Override
    public double doubleValue() {
        return value;
    }

    @Override
    public float floatValue() {
        return (float) value;
    }

    @Override
    public int intValue() {
        return (int) value;
    }

    @Override
    public long longValue() {
        return (long) value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    @Override
    public Object getImmutableObject() {
        return value;
    }
}
